package com.iwuke.dance.wallet.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.iwuke.dance.R;
import com.iwuke.dance.activity.BaseFragment;
import com.iwuke.dance.wallet.adapter.BankCardAdapter;

import java.util.ArrayList;
import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

/**
 * @author: 魏从响
 * @date: 2025/9/17
 */
public class BankCardFragment extends BaseFragment {

    private View root;
    private RecyclerView recycler_view;

    public View onCreateView(@NonNull LayoutInflater inflater,
                             ViewGroup container, Bundle savedInstanceState) {
        root = inflater.inflate(R.layout.fragment_bank_card, container, false);

        recycler_view = root.findViewById(R.id.recycler_view);

        return root;
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        setLinearLayoutManager(getActivity(),recycler_view);

        List<String> list = new ArrayList<>();
        list.add("");
        BankCardAdapter bankCardAdapter = new BankCardAdapter(getActivity(), R.layout.adapter_bank_card, list);
        recycler_view.setAdapter(bankCardAdapter);
    }

    @Override
    protected void lazyLoad() {

    }
}

